#!/bin/bash

if [ $# -lt 3 ]; then
        echo `basename $0` 'start end number'
        exit 1
fi
    
function rand(){    
    min=$1    
    max=$(($2-$min+1))    
    num=$(cat /proc/sys/kernel/random/uuid | cksum | awk -F ' ' '{print $1}')    
    echo $(($num%$max+$min))    
}    
    


for i in $(seq $3)
do
rnd=$(rand $1 $2)    
echo $rnd
done
    
exit 0